<?php
///////////////////////////////////////////////////////////////////////////////
// File:          config.inc
// Description:   Flogr configuration file
///////////////////////////////////////////////////////////////////////////////

//
// The following configuration options are required by flogr.
//

// flickr user id (see http://idgettr.com/)
$config_flickrUserId = "95137114@N00"; 

// title used for page and rss feed title
$config_siteTitle       = "test"; 
$config_siteDescription = "test"; 
$config_siteUrl         = "http://test.org/photos"; 

// photo exif data to show on the details and comments div
$config_exifLabels = "Make,Model,Software,Exposure,Aperture,Shutter Speed,ISO Speed,Flash";

// site theme
$config_theme = "css/themes/blackstripe/style.css";

// size of photo to display on the front page
$config_photoSize = "600";

// number of tags to include in tag cloud
$config_tagCount = "100";

//
// The following configuration options are optional for flogr.
//

// show only photos on the front page with these tags
$config_flickrTags      = ""; 

// used for caching images in mysql database
$config_mysqlUser       = "";
$config_mysqlPassword   = "";
$config_mysqlServer     = ""; 
$config_mysqlDatabase   = ""; 

// used for caching images on the web server
$config_fsPath          = ""; 

/*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
* Please do not edit anything below
*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*/

require_once("phpFlickr-2.1.0/phpFlickr.php");
$config_flickrApiKey = "64735d606d8cc904a3f62d3ed56d56b9";
$f = new phpFlickr($config_flickrApiKey);

// Check for required user config settings
if (!$config_flickrUserId || 
    !$config_siteTitle || 
    !$config_siteDescription || 
    !$config_siteUrl ||
    !$config_exifLabels ||
    !$config_theme ||
    !$config_photoSize ||
    !$config_tagCount) 
{
   die("User configuration settings are not complete.  Please update the required settings in config.inc");
}

// Enable caching
if ($config_mysqlUser && 
    $config_mysqlPassword && 
    $config_mysqlServer && 
    config_mysqlDatabase) 
{
   $config_mysqlConnection = "mysql://" . $config_mysqlUser . ":" . 
                             $config_mysqlPassword . "@" . 
                             $config_mysqlServer . "/" . $config_mysqlDatabase;
                             
   $f->enableCache("db", $config_mysqlConnection);
}
else if ($config_fsPath) 
{
   $f->enableCache("fs", $config_fsPath);
}

$config_userInfo = $f->people_getInfo($config_flickrUserId);
?>


